/**
 * Copyright 2013 DJSearch Co.,Ltd. All rights reserved.
 * DTM PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.djsearch.controller;

/**
 * @author dingzhongchang
 * @version 1.0.0
 */
public interface IResponse {
	/**
	 * result:0表示成功，1表示失败
	 */
	int Success = 0;
	int Fail = 1;

	// {“result”:”0”,” userId”:”876567”,”password”:”123456”}
	// 结果状态
	int result();

	/**
	 * 根据KEY值返回响应的结果
	 * 
	 * @param key
	 *            属性
	 * @return 值
	 */
	String getValue(String key);

}
